package com.sg.dto.biz.bff.common;


import com.sg.common.annotations.TreeType;
import com.sg.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc BffCycleDto
 * @使用场景
 */
@Data
public class BffCycleDto extends PagedDto implements Serializable {

    /**
     * 周期ID:
     */
    @ApiModelProperty("周期ID")
    private String cycleId;

    /**
     * 周期名称:
     */
    @ApiModelProperty("周期名称")
    private String cycleStandardName;

    /**
     * 周期开始时间:
     */
    @ApiModelProperty("周期开始时间")
    private Date cycleStartTime;

    /**
     * 周期结束时间:
     */
    @ApiModelProperty("周期结束时间")
    private Date cycleEndTime;

    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    /**
     * 个人账号ID:
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 真实头像:
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名:
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称:
     */
    @ApiModelProperty("用户昵称")
    private String nickName;
    /**
     * 是否存档
     */
    @ApiModelProperty("是否存档")
    private String isArchive;
    /**
     * 周期类型标识
     */
    @ApiModelProperty("周期类型标识")
    private String cycleTypeCode;

    /**
     * 周期类型名称
     */
    @ApiModelProperty("周期类型名称")
    private String cycleTypeName;

    /**
     * 周期类型实例标识
     */
    @ApiModelProperty("周期类型实例标识")
    private String cycleTypeInstanceCode;

    /**
     * 周期类型实例简称
     */
    @ApiModelProperty("周期类型实例简称")
    private String cycleNumberShortName;
    /**
     * 关联目标内容ID
     */
    @TreeType("fid")
    @ApiModelProperty("关联目标内容ID")
    private String targetCycleContentId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffCycleDto that = (BffCycleDto) o;
        return cycleId == that.cycleId && cycleStandardName == that.cycleStandardName && cycleStartTime == that.cycleStartTime && cycleEndTime == that.cycleEndTime && subjectLifeCycle == that.subjectLifeCycle && operationInductionId == that.operationInductionId && operateTime == that.operateTime && userId == that.userId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName && isArchive == that.isArchive && cycleTypeCode == that.cycleTypeCode && cycleTypeName == that.cycleTypeName && cycleTypeInstanceCode == that.cycleTypeInstanceCode && cycleNumberShortName == that.cycleNumberShortName && targetCycleContentId == that.targetCycleContentId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), cycleId, cycleStandardName, cycleStartTime, cycleEndTime, subjectLifeCycle, operationInductionId, operateTime, userId, userFace, idCardName, nickName, isArchive, cycleTypeCode, cycleTypeName, cycleTypeInstanceCode, cycleNumberShortName, targetCycleContentId);
    }

}
